import Vue from 'vue'
import App from './App.vue'
import './plugin/element'
import 'font-awesome/css/font-awesome.min.css'
import axios from "axios"
import router from './router'


import service from "@/utils/service"

// axios-3
Vue.prototype.service = service // 挂到原型上全局使用
Vue.config.productionTip = false

axios.defaults.baseURL = '/'
axios.defaults.headers.post['Content-Type'] = 'application/json'

new Vue({
    router,
    render: h => h(App),
}).$mount('#app')


/*
// 全局引用
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI)
*/

/*
// 按需导入
import {Button, Tag} from "element-ui"
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(Button)
Vue.use(Tag)
*/
